home *** CD-ROM | disk | FTP | other *** search
Makefile | 1992-02-05 | 1.9 KB | 107 lines |
- # Makefile for TESTDRV, a testing suite for MSCDEX compatible device
- # drivers. The majority of error verification decisions are based
- # upon the behavior of the example HITACHIA.SYS driver. Drivers not
- # adherent to this test are not considered fully compatible with
- # MSCDEX specifications.
- #
- #
- # The PREPARE define and PREPARE.C files are supplied to create binary
- # archives for verification disks.
- #
- # HISTORY:
- # 10/01/90 Final (v1.0) -by- JYG
- #
-
- # USAGE:
- # if debug:
- # NMAKE DEBUG=YES
- # else:
- # NMAKE DEBUG=NO
- #
-
- !if "$(DEBUG)" == "NO"
- DEF= -DTESTDRV
- DEBUGOBJ=
- LOPT=
- COPT=-Ocit -Gs
- MOPT=
- !else
- DEF=-DDEBUG -DTESTDRV -DPREPARE
- DEBUGOBJ= prepare.obj
- LOPT=/CO
- COPT=-Zi -Ocit -Gs
- MOPT=-Zi
- !endif
-
- CC = cl -c -nologo -AS -W3 -Zp $(COPT) $(DEF)
- ASM = masm $(MOPT) $(DEF)
- LINK= link $(LOPT) /NOD/NOE/MAP/LI
- NAME= TESTDRV
- EXT = EXE
-
- OBJ = testdrv.obj tests.obj setup.obj support.obj request.obj send.obj $(DEBUGOBJ)
-
- LIBS = slibce
-
-
- .c.obj:
- $(CC) $*.C
-
- .asm.obj:
- $(ASM) $*;
-
- goal: $(NAME).$(EXT)
- @echo "Done making TESTDRV.EXE"
- #
- # linking step
- #
-
- $(NAME).$(EXT): $(OBJ)
- $(LINK) @<<
- $(OBJ) ,
- $(NAME).$(EXT) ,
- $(NAME) ,
- $(LIBS) ;
- <<
-
- !if "$(DEBUG)" != "NO"
- # cvpack -p $(NAME).$(EXT)
- # mapsym $(NAME)
- !endif
-
-
-
- clean:
- del $(NAME).$(EXT)
- del *.obj
- del *.map
- del *.sym
-
- #depend:
- # mv makefile makefile.old
- # sed "/^# START Dependencies/,/^# END Dependencies/D" makefile.old > makefile
- # del makefile.old
- # echo # START Dependencies >> makefile
- # includes -l *.c *.asm >> makefile
- # echo # END Dependencies >> makefile
-
-
-
- # START Dependencies
-
- prepare.obj: prepare.c
-
- request.obj: request.c request.h
-
- setup.obj: setup.c
-
- send.obj: send.asm
-
- support.obj: support.c test.h
-
- testdrv.obj: testdrv.c test.h
-
- tests.obj: tests.c test.h
-
- # END Dependencies
-